package com.example.business.controller;

import com.example.business.client.OrderServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * BusinessController class
 *
 * @author zhangl
 * @date 2023/4/27 13:17
 */
@RestController
public class BusinessController {

    @Autowired
    private OrderServiceClient orderServiceClient;

    @GetMapping("/version")
    public String getVersion() {
        return orderServiceClient.getOrderServiceVersion();
    }
}
